fixes #28 - models now return the correct sort group ID which fixes sorting in groups