fixed bracket sorting