better ordering of resultsets