FIX: indexQueryAll sort bug