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 08:49
raj is currently offline rajFriend
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: Wed Dec 17 23:24:52 GMT 2014

Powered by FUDForum. Page generated in 0.02075 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software