elpaso / django-dag

Basic portable Directed Acyclic Graph application for Django
66 stars 19 forks source link

Are the children ordered? #2

Closed turian closed 13 years ago

turian commented 13 years ago

I would like to be able to retrieve the children in a fixed order, e.g. the order they were created.

I would also like to retrieve descendants in a fixed order.

Is there a way to guarantee this?

elpaso commented 13 years ago

Hi Turian,

ordering can be implemented in your concrete classes. There are many way to do this, you could start looking at: https://docs.djangoproject.com/en/dev/ref/models/options/#ordering