Fix id column sorting