From b568d14fe83e919b41452d8ae5b57a7dedc671cf Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Tue, 2 Dec 2008 23:29:29 -0800 Subject: NEW FEATURE: new sorting algorithm you can now sort your hand "low to high" and change your default using the setting dialog --- include/db.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/db.php') diff --git a/include/db.php b/include/db.php index 514bde2..de549a5 100644 --- a/include/db.php +++ b/include/db.php @@ -729,6 +729,14 @@ function DB_get_PREF($myid) else $PREF['autosetup']='no'; + /* Sorting */ + $r = DB_query_array("SELECT value FROM User_Prefs". + " WHERE user_id='$myid' AND pref_key='sorting'" ); + if($r) + $PREF['sorting'] = $r[0]; + else + $PREF['sorting']='high-low'; + return $PREF; } -- cgit v1.2.3-18-g5258