fixed sort params in getModel funcs