Adds order to nested