title: How can I sort a List several different ways in a JSP?
body: <p>I have a list of Player objects getting passed into a JSP from a controller, and I want to display them in a couple of different ways on the same page: </p>
  
  <ul>
  <li>a menu sorted by name</li>
  <li>a list sorted by win/loss percentage</li>
  </ul>
  
  <p>I could put separate sorted copies in the model, but dealing with different ways to display the same list seems more like a responsibility of the view, so I'd like to avoid putting the logic in the controller if I can. I already have a couple of classes implementing Comparator to help with the actual sorting.</p>
  
  <p>What's the best way to do that in a JSP?</p>
  
  <p>Can I sort the list before passing it in to the different <code>forEach</code> tags?</p>