Skip to main content

Module manual

Module manual 

Source
Expand description

Hand-arranged (“manual”) item order inside a folder.

Eagle keeps the order in each item’s order map: order[<folder id>] is a decimal string. The folder’s MANUAL sort compares these strings as strings, largest first, and an item without an entry sorts by its modificationTime (as a string) instead. Dragging items writes new values halfway between the neighbours they land between, computed in exact decimal arithmetic (division rounded to 20 places) and written in the shortest form, as a big-number library’s toPrecision() does.

Functions§

manual_cmp
Eagle’s MANUAL comparison: the sort keys compared as strings, larger first. Reverse the result for a descending folder.