Adding ordering functionality to the sqlite Table class