Sort figures