Changeset - 7ce16688498d
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2010-10-13 17:57:42
ohnobinki@ohnopublishing.net
Sort the college profiles listed on the ``School Selection'' page.
1 file changed with 12 insertions and 0 deletions:
0 comments (0 inline, 0 general)
admin/rehash.php
Show inline comments
 
@@ -92,6 +92,17 @@ function school_list()
 

	
 
/**
 
 * \brief
 
 *   Compare the two schools by their names.
 
 *
 
 * \see strcmp()
 
 */
 
function school_cmp($school_a, $school_b)
 
{
 
  return strcmp($school_a['name'], $school_b['name']);
 
}
 

	
 
/**
 
 * \brief
 
 *   Write out the cache file which remembers the list of available
 
 *   schools.
 
 *
 
@@ -133,6 +144,7 @@ function school_cache($schools)
 
	  $domain_cache_ptr[$domain_part] = $school['id'];
 
	}
 
    }
 
  uasort($list_cache, 'school_cmp');
 

	
 
  $cache = array('list' => $list_cache, 'domains' => $domain_cache);
 

	
0 comments (0 inline, 0 general)