sorting and fixes problem with scaling and px/rem fallback