all repos — litestore @ 1a2f0f9e9e90e59584197a66e9e88a5ffa2d22d8

A minimalist nosql document store.

Fixed ordering to be case-insensitive.
h3rald h3rald@h3rald.com
Tue, 21 Jan 2020 10:55:20 +0100
commit

1a2f0f9e9e90e59584197a66e9e88a5ffa2d22d8

parent

e66a778d2a26a6dfbc7944b6d1b05e339cc2687a

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/litestorepkg/lib/api_v5.nimsrc/litestorepkg/lib/api_v5.nim

@@ -46,9 +46,9 @@ var field = matches[1]

if field[0] == '$': field = "json_extract(documents.data, '$1')" % matches[1] if matches[0] == "-": - clauses.add("$1 DESC" % field) + clauses.add("$1 COLLATE NOCASE DESC" % field) else: - clauses.add("$1 ASC" % field) + clauses.add("$1 COLLATE NOCASE ASC" % field) return clauses.join(", ") proc selectClause*(str: string, options: var QueryOptions) =