This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sortResults(results, sortOrder, sortBy) { | |
var datePattern = /^\/Date\((\d*)\)\/$/; | |
var sortByString = String(results[0][sortBy]); | |
results.sort(function(a, b) { | |
if (sortBy) { | |
if (sortByString.match(datePattern)) { | |
var x = Healthx.convertJsonDateToDateObject(a[sortBy]); | |
var y = Healthx.convertJsonDateToDateObject(b[sortBy]); | |
} else { | |
var x = a[sortBy]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Kaliber10000 { The Designer's Lunchbox }</title> | |
<!-- the master preload + the generic js --> | |
<!-- some js done by Dan Steinman (http://www.dansteinman.com/dynduo/) who rocks the world --> | |
<!-- other js created or borrowed by the K10k crew --> | |
<link rel="stylesheet" href="css/k10k.css" type="text/css"> | |
<script language="JavaScript" type="text/javascript"><!-- |