diff --git a/database/pgsql/queries.go b/database/pgsql/queries.go index 49ccd014..a5a5ed0f 100644 --- a/database/pgsql/queries.go +++ b/database/pgsql/queries.go @@ -219,7 +219,7 @@ const ( AND vafv.featureversion_id = fv.id AND ldfv.featureversion_id = fv.id AND ldfv.modification = 'add' - ORDER BY ldfv.ID + ORDER BY ldfv.layer_id ) SELECT l.id, l.name FROM LDFV, Layer l