Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sort the Speed Dials slots by position

  • Loading branch information...
commit 4b872b10304c1f7b4e6e12738e1a52c1f43f336f 1 parent 25a411b
@estebanm estebanm authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 index.php
View
6 index.php
@@ -112,6 +112,12 @@
// print out the speeddial data
$json_data_array = json_decode($response_info,true);
+ uasort($json_data_array, function ($a, $b) {
+ $apos = $a["id"];
+ $bpos = $b["id"];
+ if ($apos == $bpos) return 0;
+ return ($bpos > $apos) ? -1 : 1;
+ });
echo("<html>");
echo("<head><title>Opera Link SpeedDial PHP demo</title>");
Please sign in to comment.
Something went wrong with that request. Please try again.