Added block to sort_by_ancestry class method.
added test for #85