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 objects in order of decreasing size
tags/v0.1.0
Fen Dweller
hace 6 años
padre
6ee6e6c13d
commit
a2968e1972
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/objects.js
+ 6
- 0
presets/objects.js
Ver fichero
@@ -115,6 +115,12 @@ function makeObjects() {
}
)
});
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