Hey all. I'm new to this forum so I'm a little confused... but hey who!

Anyway, straight to the point, I'm currently in 6th Form in school and we are learning Pascal in computing.

For one small activity, I need to get the information from a file and sort it ascendingly. I have my file (called datatosort.txt) and I can retrieve the info, but I am unable to sort it.... =/

I am using Delphi 7, and I have looked up on the Bubble Sort, Shell Sort and the Quick Sort, and all use the swap, but Delphi 7 doesn't support this... so I don't know where/what to do...

Any help? Thanks in advance. :)

And if you need the code, I'll post here. ;)

Well.. Make your own :)

What do you think a swap procedure/function would do?

Are the items you sort numbers?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.