Fixed bug that called callback on sortDone even if the setting is set to null.