Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 11-17-2010, 08:52 AM
CrackBerry Newbie
 
Join Date: Sep 2010
Posts: 9
Likes Received: 0
Thanked 0 Times in 0 Posts
Default blackberry sorting

HEllo All, I am successfully able to read and print the contents of a text file. My text file contains 5 data entries such as 1.Rashmi 120 2.Prema 900 and so on. It must sort only the integers in descending order and swap the respective names attached to them. the first column of serial number must remain the same.each time a new entry is made that score must be compared to the existing 5 records and placed accordingly with new name and score. Since this is blackberry programming and blackberry APIs dont support collections.sort,please tell me how do I do this.I tried vectors.simplesortingvector but I am unable to put it into coding form. Can anybody please give me a sample program implementing this? I know the logic but finding difficulty in programming
Reply With Quote Tip this Post
  #2  
Old 11-19-2010, 11:41 AM
CrackBerry User
Device(s): 9300
Carrier: O2
 
Location: Blighty
Join Date: Oct 2009
Posts: 72
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

Hi, Have a look at the SimpleSortingVector class.

SimpleSortingVector (BlackBerry JDE 5.0.0 API Reference)
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   blackberry sorting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes