Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 315 Bytes

working_with_results.markdown

File metadata and controls

13 lines (9 loc) · 315 Bytes

Working With Results

Ordering

sodb can order your results ascendingly (protip use .reverse() to get descending).

heightOrder = database.orderBy('height', {eyes: 2});
heightOrder[0].name // jorge
heightOrder.reverse()[0].name // tim

If you are using caching your sorts are cached too.