intermediate fix for sort by span … not working yet