added multi array sort