If I read your question correctly, the stuff you ask contradicts. That is:
1) you want contacts to be visible all the time (offline or not)
2) you don't want them on top
It's one of the two, you can't have both.
quote:
Originally posted by Zeh
So I wanted to have the online ones allways on top and the offline ones on the backround.
Then choose in the preferences:
Plus! > Preferences > Messenger > Contacts on Desktop > Alter settings based on contact's status: Hide when offline...
No need for any script (a script wouldn't be able to alter this anyways).
If I misunderstood you, my excuses, can you explain it a bit in more detail or in another way in that case?