antville/code/User/objectFunctions.js
Robert Gaggl ea609ecb7d - removed method sendConfirmationMail
- sortSubscriptions is now failsafe, although it shouldn't happen anymore that a membership object still exists for a removed site
2003-08-02 11:52:53 +00:00

15 lines
343 B
JavaScript

/**
* function for sorting member-objects by the lastupdate-timestamp
* of the according site
*/
function sortSubscriptions(s1, s2) {
if (!s1.site || !s2.site)
return 0;
if (s1.site.lastupdate < s2.site.lastupdate)
return 1;
else if (s1.site.lastupdate > s2.site.lastupdate)
return -1;
else
return 0;
}