changed sort to normalize for clarity