I Have to Sort separately meaning , i have to display the bikes with ascending power and in another place , i have to display with highest displacement , just like that with the price.. But if i use the above code , it will only sort with respect to power only ...
Considering this ,
//Bikes.txt
//Name$price$brand$Displacement$power$category$
Apache180RTR$0.95$TVS$180$17$Naked Sport$
CBR150R$1.4$Honda$150$17$Super Sport$
CBR250R$2.1$Honda$250$25$Sports Tourer$
Duke200$1.5$KTM$200$25$Naked Sport$
Duke390$2.3$KTM$375$43$Naked Sport$
GT250R$3.2$Hyosung$250$27$Super Sports$
Ninja300$4.1$Kawasaki$300$39$Super Sports$
Pulsar200NS$1.05$Bajaj$200$23$Naked Sport$
Pulsar220$0.95$Bajaj$220$21$Sports Tourer$
R15$1.2$Yamaha$150$17$Super Sport$
Street750$5.0$Harley Davidson$750$N.A$Cruiser$
In One display , i wanna sort it by name.
In another , with respect to price meaning
Street750
Ninja300
GT250
Duke390
CBR250
Duke200
R15
Apache
Pulsar 220
|
I think u got the point , if u check the text file , u will get to know the price , i have just showed the example , but i am not understand how to do it.
Meaning , i have to sort it for like 5 times and display for 5 times w.r.t to each of the parameters like name , price , power etc.