[BUGFIX beta] pass context to sortFunction to avoid calling __nextSuper on undefined