test: make select result stable by ordering