summaryrefslogtreecommitdiff
path: root/lib/js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-09-19 13:32:33 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-09-19 13:32:33 -0400
commit04b98841de74bdf38e905729a501b34913902db7 (patch)
treef50a6fffa9a2e6aaacfe70b509015a14b90a0a16 /lib/js
parent0ecf48297c01024c108f0cbb8b401250bdfaf44a (diff)
Grid sorting working
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/urweb.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index b1046aa6..638bb2b9 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -506,6 +506,9 @@ function uul(getToken, getData) {
throw ("Can't unmarshal list (" + tok + ")");
}
+function strcmp(str1, str2) {
+ return ((str1 == str2) ? 0 : ((str1 > str2) ? 1 : -1));
+}
// Remote calls