It's very simple. If you want an ordering that you can rely upon, then you need to include enough columns in your ORDER BY
clause such that the combination of all of those columns is unique for each row. Nothing else is guaranteed.
For a single table, you can usually get what you want by listing the columns that are "interesting" to sort by and then including the primary key column(s) afterwards. Since the PK, by itself, guarantees uniqueness, the whole combination is also guaranteed to uniquely define the ordering, e.g. If the Urls
table has a primary key of {Site, Page, Ordinal}
then the following would give you a dependable result:
SELECT * FROM Urls ORDER BY status, Site, Page, Ordinal
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…