Fixed table.sortby() when several entries had the same property value.