# Maintaining Label Order in YOLOv8 Export from Roboflow

**URL:** https://discuss.roboflow.com/t/maintaining-label-order-in-yolov8-export-from-roboflow/6880
**Category:** 🤝  Community Help
**Tags:** export
**Created:** [August 24, 2024, 8:30pm UTC](https://discuss.roboflow.com/t/maintaining-label-order-in-yolov8-export-from-roboflow/6880 "2024-08-24T20:30:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nik](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/nik/32/5337_2.png) [@Nik](https://discuss.roboflow.com/u/Nik)
#### Post date: [August 24, 2024, 8:30pm UTC](https://discuss.roboflow.com/t/maintaining-label-order-in-yolov8-export-from-roboflow/6880/1 "2024-08-24T20:30:28Z")

</div>

Hi everyone,

I’m facing an issue with Roboflow when exporting my datasets in the YOLOv8 format. The labels in the exported ZIP file do not appear in the order I originally specified during class creation. I want my classes/labels to remain in the exact order I entered them, even if I don’t use all the classes in each dataset.

Here’s the order of my labels:

1. Finger\_Blue
2. Finger\_Red
3. Finger\_Yellow
4. HB\_Two
5. HB\_Three
6. RB\_Two
7. RB\_Three
8. Mounting\_Station
9. No\_Part
10. Assy\_0
11. Assy\_25
12. Assy\_33,3
13. Assy\_50
14. Assy\_66,7
15. Assy\_75
16. Assy\_100
17. 

For example, even if I don’t use **Finger\_Blue** in a dataset and only include **Finger\_Yellow** , I still want **Finger\_Blue** to correspond to class 0 and **Finger\_Yellow** to class 2 in the export.

Is there a solution to keep the label order intact regardless of which classes are used in the dataset? Any advice would be greatly appreciated!

Thanks in advance!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)
#### Post date: [September 14, 2024, 8:31pm UTC](https://discuss.roboflow.com/t/maintaining-label-order-in-yolov8-export-from-roboflow/6880/2 "2024-09-14T20:31:15Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
