Try just order by 1 . Read the error message. Then restore order by (select 1) . Understand that the person who wrote this at some point read the error message, and then decided that the right thing was to trick the system so as not to raise an error, and not understand the basic truth that this error was trying to warn.
Tables do not have an inline order. If you want to get some kind of order form that you can rely on, you should provide sufficient deterministic expression (s) to any ORDER BY so that each line is uniquely identified and ordered.
Anything else, including tricking the system so as not to emit errors, hopes that the system will do something reasonable without using the tools provided to you to make sure that it is doing something reasonable - a clearly stated ORDER BY .
source share