added array sort