Added the preliminary sort for associative arrays. AKA JS Objects with a list of ids and list of objects.