Pull #522 merged from 0.9.x - SortByName()