Woodburn2006 Posted November 22, 2007 Share Posted November 22, 2007 i am getting some data from a database and using php to do some maths on it, at the end i will have loads of different values in a list, is there any way of sorting these values in ascending order using php? Link to comment https://forums.phpfreaks.com/topic/78340-sorting-in-php/ Share on other sites More sharing options...
Daukan Posted November 22, 2007 Share Posted November 22, 2007 sort() Link to comment https://forums.phpfreaks.com/topic/78340-sorting-in-php/#findComment-396404 Share on other sites More sharing options...
Woodburn2006 Posted November 22, 2007 Author Share Posted November 22, 2007 cool thanks, but the problem i have is that i am sorting a league table therefore within a single array i would have: the name, wins, second places, third places and total points. then i will need to sort these by the total points so that i can have a league table. is there any way of doing that? Link to comment https://forums.phpfreaks.com/topic/78340-sorting-in-php/#findComment-396408 Share on other sites More sharing options...
Daukan Posted November 22, 2007 Share Posted November 22, 2007 usort() Link to comment https://forums.phpfreaks.com/topic/78340-sorting-in-php/#findComment-396410 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.