fix build recipe fix array sort