sort tickets within priority by most recently edited+priority