worked out sorting if list is longer than 100