fix for deprecated functions for sorting arrows