How to search through an array of structs?

Does it have to be sorted?