Women in Technology

Hear us Roar



Article:
  Making Java Objects Comparable
Subject:   Regarding sorting of objects
Date:   2006-11-29 01:14:09
From:   raoul.schmidiger
Response to: Regarding sorting of objects

for sorting with 2 criterias, you will have to first sort by one criteria and then within each "element" do a second sort with the other criteria.


sort1: 1, 2, 3 ... n
sort2 1: a, b, c ..., z
sort2 2: a, b, c ..., z
sort2 3: a, b, c ..., z
sort2 ...: a, b, c ..., z
sort2 n: a, b, c ..., z


Easy...