add basic sorting for searches