web/data/cubicweb.js
changeset 7953 a37531c8a4a6
parent 7831 6af00dbfaadd
child 7961 f7ab1db39778
--- a/web/data/cubicweb.js	Fri Oct 14 08:51:24 2011 +0200
+++ b/web/data/cubicweb.js	Fri Oct 14 09:21:45 2011 +0200
@@ -82,6 +82,15 @@
         }
         return src;
     }
+
+
+    sortValueExtraction: function (node) {
+	var sortvalue = jQuery(node).attr('cubicweb:sortvalue');
+	if (sortvalue === undefined) {
+	    return '';
+	}
+	return sortvalue;
+}
 });