A gallery often needs a meaningful order before a person selects its first row. SortByColumns sorts the supplied table by the columns and directions you name. First then selects the leading record in that result. It cannot infer that highest, oldest or most urgent was the intended order.
Ties need a deliberate second key when a stable queue matters. Two requests can share a priority or title while remaining separate records. Filter the requested population before ordering it, then project the field the person needs. Prefix matching also differs from exact equality. The tasks use repeated titles, tied priorities and a zero cost so a casual glance cannot replace the query definition.