Location: PHPKode > projects > Top Music module > Top Music 3.0.7/html/modules/topMusic/lib/com/sergids/topmusic/model/Artist.php
<?php
class Artist{
	function orderAZ(&$list) {
		//set key as the name
		if(is_array($list) && count($list)>0){
			$list2=$list;
			$list=null;
			foreach($list2 as $i => $item){
				$artistO=$item;
				$id=$artistO->getId();
				$name=$artistO->getName();
				$list[$name]=$artistO;
			}
			//order list by its key (name)
			ksort($list);
		}
	}
}
?>
Return current item: Top Music module