use SQL to order based on this