Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » how to sort alphanumeric values in org.eclipse.jface.viewers.ViewerSorter(how to sort alphanumeric values in org.eclipse.jface.viewers.ViewerSorter)
how to sort alphanumeric values in org.eclipse.jface.viewers.ViewerSorter [message #656101] Thu, 24 February 2011 03:49
raj is currently offline raj
Messages: 19
Registered: January 2010
Location: hyderabad
Junior Member


hi
i want sort based on alphanumeric values but
by using below code i am getting sorted values based on string


org.eclipse.jface.viewers.ViewerSorter

public int compare(Viewer viewer, Object e1, Object e2) {
return e1.compareTo(e2);
}

ex: temp10
temp9
temp5
temp8
temp1

to be sorted as

temp1
temp5
temp8
temp9
temp10
Previous Topic:How do I get rid of unwanted scroll bars in tree viewer?
Next Topic:[Wizard]: TableViewer selectionProvider inside a Wizard
Goto Forum:
  


Current Time: Sat Jul 26 09:17:51 EDT 2014

Powered by FUDForum. Page generated in 0.01388 seconds