Should always sort by primary keys. bugid:110910