Adds Collection sorting mixin.