Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sorting data table problem

 
Hemanth Pillai
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to add sort functionality to the datatable to display a list of employees. And the results are in an object of ResultDataModel. When I am trying to sort using Collections.sort(dataModel.getRowData(), comparator); the compiler throws an error saying sort function is not available. Can any one please guide me in getting rid of the error. Appreciate any help.

Please find the code below.


Thanks
Hemanth
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic