JC SortMap methods substituted by mine