fixed error (no sort on dict)