combined sort with JSON.parse step, one less var needed