Thanks david that second one was perfect!!! thankyou, only thing ill mention is that i needed them the oposite order so in the code I switched
return ($a->profile_order > $b->profile_order) ? -1 : 1;
to
`return ($a->profile_order > $b->profile_order) ? 1 : -1;’
and it worked like a charm
THANK YOU!