• ORDER BY SYSCOLUMNS.COLID should be ORDER BY sysindexkeys.keyno

    Ordering by COlID causes wrong columns order in the key.