small fix for sort;