Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function splitsort($a, $b) {
- $key1 = explode("-", $a);
- $key2 = explode("-", $b);
- if ($key1[0] != $key2[0])
- return $key2[0] - $key1[0];
- return strcmp($a, $b);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement