When sorting with "behaves_like: grouping", order '0' was ignored. Fixes #2112