Implemented dynamic Sort-Function with JSON-Objects