fiddling with array sorting