How to ignore certain values using Java comparator for sorting
<p>I'm using Java Comparator for sorting in my code. How I can only sort by certain values, e.g., the values range from 1 to 1000, (default is 1000), but I only want ascending sort to show 1,2,3,4,5,1000..., and descending sort to show 5,4,3,2,1,1000....
How do I do this?
Thanks,</p>

<p>David</p>
