- vectors.addFeatures(highlight);
-
- $("#tr-changeset-" + id).addClass("selected");
-}
-
-function unHighlightChangeset(id) {
- vectors.removeFeatures(highlight);
-
- $("#tr-changeset-" + id).removeClass("selected");
-}
-
-$(document).ready(function () {
- var map = createMap("changeset_list_map", {
- controls: [
- new OpenLayers.Control.Navigation(),
- new OpenLayers.Control.Zoom(),
- new OpenLayers.Control.SimplePanZoom()
- ]
+ changesets.sort(function (a, b) {
+ return b.bounds.getSize() - a.bounds.getSize();