2009 Dominican College Baseball Roster
There was a problem with a Velocity script
Page /sports/roster-baseball-template
Error Invocation of method 'sortedBy' in class com.prestosports.content.HeadlinesSorter threw exception java.lang.UnsupportedOperationException: ComparatorChains must contain at least one Comparator @ roster-baseball-template[17,34]
Page source:
1: <center>#if ($page.thumbnailURL)<img src="$page.thumbnailURL">#end
2: <h2>$page.title</h2></center>
3:
4:
5: <table border="0" cellpadding="0" cellspacing="0" align="center">
6: <tr class="roster-header">
7: <td>No.</td>
8: <td>Player</td>
9: <td>Yr.</td>
10: <td>Pos.</td>
11: <td>Hgt.</td>
12: <td>Wgt.</td>
13: <td>B-T</td>
14: <td>Hometown (High School) College </td>
15: <td>Major </td>
16: </tr>
17: #foreach ($bioinfo in $headlines.sortedBy("number"))
18: #set ($row = ($velocityCount + 2) % 2)
19: #set ($bio = $bioinfo.getDataAsObject().getAttributes())
20: <tr class="roster-row$row">
21: <td>$!bio.get("number")</td>
22: <td><a href="$bioinfo.url">$!bio.get("first_name") $!bio.get("last_name") $!bio.get("custom10")</a></td>
23: <td>$!bio.get("year")</td>
24: <td>$!bio.get("position")</td>
25: <td>$!bio.get("height")</td>
26: <td>$!bio.get("weight")</td>
27: <td>$!bio.get("custom2")</td>
28: <td>$!bio.get("hometown") ($!bio.get("highschool")) $!bio.get("college")</a></td>
29: <td>$!bio.get("major") </td>
30: </tr>
31: #end
32: </table>
33:
34: $wiki
35:
36: <br>
37: #set ($footer = "${page.url}-footer")
38: $website.include($footer)
39:
40:
41: </p>