From a0bbe01c24bd88c7586cf282db02109ff6abda89 Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Fri, 16 Aug 2019 18:02:54 +0200 Subject: [PATCH] Support record sorting by ID --- compose/internal/repository/record.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compose/internal/repository/record.go b/compose/internal/repository/record.go index e1866c84e..2d553f0a0 100644 --- a/compose/internal/repository/record.go +++ b/compose/internal/repository/record.go @@ -343,8 +343,9 @@ func (r record) LoadValues(fieldNames []string, IDs []uint64) (rvs types.RecordV // Checks if field name is "real column", reformats it and returns func isRealRecordCol(name string) (string, bool) { switch name { + case "recordID": + return "id", true case - "id", "module_id", "owned_by", "created_by",