added sorting function in network table, reverting SVN 6736 (not removing new sorttable)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6768 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent 31e29a8831
commit 21fcbcc35f

@ -265,10 +265,11 @@ public class Network {
final boolean complete = (post != null && post.containsKey("ip"));
Iterator<yacySeed> e = null;
final boolean order = (post != null && post.get("order", "down").equals("up"));
final String sort = (post == null ? null : post.get("sort", null));
switch (page) {
case 1 : e = sb.peers.seedsSortedConnected(order, yacySeed.LCOUNT ); break;
case 2 : e = sb.peers.seedsSortedDisconnected(order, yacySeed.LASTSEEN); break;
case 3 : e = sb.peers.seedsSortedPotential(order, yacySeed.LASTSEEN); break;
case 1 : e = sb.peers.seedsSortedConnected(order, (sort == null ? yacySeed.LCOUNT : sort)); break;
case 2 : e = sb.peers.seedsSortedDisconnected(order, (sort == null ? yacySeed.LASTSEEN : sort)); break;
case 3 : e = sb.peers.seedsSortedPotential(order, (sort == null ? yacySeed.LASTSEEN : sort)); break;
default: break;
}
String startURL;

Loading…
Cancel
Save