Quote Originally Posted by sayzer
Hi Anand,

Here is your answer if I understood your question right.

http://www.picbasic.co.uk/forum/showthread.php?t=4907



With some simple modifications, you should be ok.
If you need clarification for the way it works, simply ask here or there.


-------------------------
Sayzer, that was a fast response, thanks!

I understood the part where an array is created from the values in the EEPROM. But I still dont get how to sort on the first variable.

In my code, the EEPROM will be filled up with records consisting of 6 bytes; I would like these to be stored (refreshing the EEPROM) so that they are sorted by the 1st byte of each record; that is, the bytes at 0, 6, 12 and so on..

Have I missed something here?

Regards,

Anand