Sort db read for lists by id
Sort db read for lists by id

On dbReads for lists, make sure we sort by the ids written
with each entry.  This guarantees reads come back in the same
order the write was made, to handle the lack of ordering in a
JSON scheme.

Signed-off-by: Chris Rogers <93f3b195a4de515d53c63d830b5d81d1ff490fbf@gmail.com>
Signed-off-by: Nicholas Tsirakis <d4881e556e12b6aed341497d9ac2cf24de80e598@gmail.com>

OpenXT/xclibs,OpenXT/xclibs