Jump to content

frankvanlaere

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

frankvanlaere's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello there, I have a class (let's call it Mojo) which has values like id, position etc. This class then gets initialized with: Mojo austin1, austin2, austin3; Now, how do I sort _all_ three classes on the value position? This value can change and at certain points they have to be sorted on that variable. I've been trying stuff like sort(Mojo->position); but it doesn't seem to work. I could fix this by inserting them into a temporary table into a mysql database, and then re-fetching them in the correct order, but that's not very good is it? And I feel that there must be an easier solution. Thanks! ps. I know I haven't used the word classes correctly all the time, either way, there's only 1 class and when I say classes I mean those austin1, austin2, austin3 things, what do you call them? Instances?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.