- I have a list of objects.
- Each object has a variable named number.
- All objects are in a list
What I would like to achieve in the most efficient manner is to order my objects by their number var.
An example :
Object1
_number=1
Object4
_number=2
Object3
_number=5
ListObj=[Object1,Object3 ,Object4]
What I want to get is to be able to get my objects in order by their number :
Object1, Object4, Object3
Comment