---
title: "DrawOrder"
---
<!-- DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/docs/website.rs -->

Draw order of 2D elements. Higher values are drawn on top of lower values.

An entity can have only a single draw order component.
Within an entity draw order is governed by the order of the components.

Draw order for entities with the same draw order is generally undefined.

## Rerun datatype
[`Float32`](../datatypes/float32.md)


## Arrow datatype
```
Float32
```

## API reference links
 * 🌊 [C++ API docs for `DrawOrder`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1components_1_1DrawOrder.html)
 * 🐍 [Python API docs for `DrawOrder`](https://ref.rerun.io/docs/python/stable/common/components#rerun.components.DrawOrder)
 * 🦀 [Rust API docs for `DrawOrder`](https://docs.rs/rerun/latest/rerun/components/struct.DrawOrder.html)


## Used by

* [`Arrows2D`](../archetypes/arrows2d.md)
* [`Boxes2D`](../archetypes/boxes2d.md)
* [`DepthImage`](../archetypes/depth_image.md)
* [`Ellipses2D`](../archetypes/ellipses2d.md)
* [`EncodedDepthImage`](../archetypes/encoded_depth_image.md)
* [`EncodedImage`](../archetypes/encoded_image.md)
* [`GridMap`](../archetypes/grid_map.md)
* [`Image`](../archetypes/image.md)
* [`LineStrips2D`](../archetypes/line_strips2d.md)
* [`Points2D`](../archetypes/points2d.md)
* [`SegmentationImage`](../archetypes/segmentation_image.md)
* [`VideoFrameReference`](../archetypes/video_frame_reference.md)
* [`VideoStream`](../archetypes/video_stream.md)
