Files
gristlabs_grist-core/sandbox/grist
Alex Hall 89259371a5 (core) Respect sort_by in lookupOne, and allow reverse sorting
Summary:
Ensure that `lookupOne` (via `RecordSet.get_one`) pays attention to the `sort_by` parameter by picking the first of its sorted list of row IDs.

Allow specifying reverse sort order in `sort_by` by adding `"-"` before the column ID.

Suggested in https://grist.slack.com/archives/C0234CPPXPA/p1665756041063079

Test Plan: Extended Python lookup test

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D3675
2022-10-24 20:10:08 +02:00
..
2022-06-17 21:53:20 +02:00
2022-10-17 13:38:21 +02:00
2020-07-29 08:57:25 -04:00
2022-06-17 21:53:20 +02:00
2022-10-17 13:38:21 +02:00
2022-10-17 13:38:21 +02:00
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00
2022-06-17 21:53:20 +02:00
2022-05-04 21:41:42 +02:00
2022-05-04 21:41:42 +02:00