Linear search can be used for both sorted and unsorted data. The whole array may still be searched, however, if the default implementation is used.