Fixed list ordering in queries