Field orderingSee original GitHub issue
Support ordering of fields (meta).
Ordering information should be stored in an attribute. The attribute key could be as such:
metaOrder:someAttributeName. The order should be numeric, 0 and upwards. If a meta item does not have an order attribute, it should be placed at the end of the list in random order (as it falls).
Helpers to get the order should be provided. A helper to reset the order of each item should be provided. Some kind of interface to manage changing the order should be provided. Discuss any ideas here before implementation.
- Created 6 years ago
- Comments:13 (5 by maintainers)
Top GitHub Comments
Also good to note that the
deleteProperty method should be modified to also delete the order attribute, if it exists. I’m not sure that
setProperty needs to set the order, but I could be swayed either way.