Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
chemicalcrux
/
macrovision
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
5
Pull Requests
0
Lanzamientos
10
Wiki
Actividad
Explorar el Código
Sort buildings by height
tags/v0.0.6
Fen Dweller
hace 5 años
padre
330972311f
commit
2fd8298f29
Se han
modificado 1 ficheros
con
6 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+6
-0
presets/buildings.js
+ 6
- 0
presets/buildings.js
Ver fichero
@@ -119,5 +119,11 @@ function makeBuildings() {
)
});
results.sort((b1, b2) => {
e1 = b1.constructor();
e2 = b2.constructor();
return -math.subtract(e1.views[e1.defaultView].height, e2.views[e2.defaultView].height).value;
});
return results;
}
Escribir
Vista previa
Cargando…
Cancelar
Guardar