You are here

function _devel_switch_user_list_cmp in Devel 6

Same name and namespace in other branches
  1. 7 devel.module \_devel_switch_user_list_cmp()

Comparison helper function for uasort() in devel_switch_user_list().

Sorts the Switch User links by the user's last access timestamp.

1 string reference to '_devel_switch_user_list_cmp'
devel_switch_user_list in ./devel.module

File

./devel.module, line 738

Code

function _devel_switch_user_list_cmp($a, $b) {
  return $b['last_access'] - $a['last_access'];
}