Add sort and fromArray