lightweight extended method for multiple sorting functionality for JSON array