Order all query results by ID

Functions in Spec.hs currently assume that the results are ordered by ID
and will fail if results are returned in any other order. None of the
current tests produce results with multiple entities, but future tests
will, and this change will simplify those tests.

Signed-off-by: Stian Ellingsen    <stian@plaimi.net>
Reviewed-by:   Alexander Berntsen <alexander@plaimi.net>
Signed-off-by: Alexander Berntsen <alexander@plaimi.net>