I have two lists which I have sorted with asort().
$weightings = Array([7] => 1,[3] => 2,[1] => 10,[2] => 10,[10] => 10,[6] => 10,[4] => 15,[5] => 15,[8] => 20,[9] => 20);
$revised_date = Array([1] => 1378652385,[2] => 1378654024,[3] => 1378654113,[4] => 1378654151,[5] => 1378654201,[6] => 1378654239,[7] => 1378654273,[8] => 1378841224,[9] => 1378842139,[10] => 1378842189);
a third list contains the titles of the articles that I want published on a website in order of their weighting, primarily and, if two or more articles have the same weighting, then the date that the item was revised.
$titles = Array([1]=>"Our location",[2]=>"Contact Details",[3]=>"Services we offer",[4]=>"Boats for sale",[5]=>"Cars for sale",[6]=>"Bikes for sale",[7]=>"News",[8]=>"History",[9]=>"Legends",[10]=>"How to find us...",);
The keys to all three lists refer to the same article.
Is there a simple way of acheiving this?