• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sorting objects using comparator doesnt work

 
Vs Kommuru
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to sort a list of objects using Comparator. It does nt work. please let me the problem in the following code:



Thanks,
kommuru
 
rogel garcia
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is working...

Check the type of g and gs objects in the main function....
 
Vs Kommuru
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rogel. Its working now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic