sort of sorts whole json object and fixed css stuff