I am implementing an application in both C# and Java, and would like to have functionality similar to the ORDER BY function in SQL. However, to do this I must understand the concept of ordering multiple columns.
I have tried writing simple SQL statements such as
SELECT *
FROM TABLE
ORDER BY Field1,Field2
.
On doing so, only Field1
is ordered. Is there actually any use at all for specifying multiple columns?