• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to sort the excel sheet using POI?

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
i am generating an excel sheet using the POI (HSSF classes) from a text file.
the excel sheet is generated properly.
what i want to know is how can i generate an entire sheet which is sorted based on a particular column.
for example:
S.No Name Area Code
-----------------------
1 ABC South
2 XYZ North
3 PQR East
Th excel is generated fine.
now i want it to be made in the already sorted format as below(based on areacode)
S.No Name Area Code
-----------------------
1 PQR East
2 XYZ North
3 ABC South
Can any one suggest a way to go about doing this.
? are there any classes in HSSF series or POI which can help achieve this?
Quick response will be highly appreciated
Thanx in advance
Chhaya
 
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic