Can you sort poses according to their pose labels?

I couldn’t find a way to sort poses based on labels in the vision step library. Is it possible to achieve this?

Since labels are strings, they cannot be sorted directly. Therefore, you can assign numbers to the labels, sort the numbers, and then convert the numbers back to labels.