I am retrieving elements from an array:

```
  - member_results.each do |member|
      = member

```

It returns something like this:

```
["John", "Jason", "Andy", "Zee", "Sandy", "Randy", "Grisham"]

```

I need to sort the array alphabetically, retrieve only the first five unique elements from the array. Can someone recommend me an efficient way to write a helper for this?

EDIT:
So based on the answer provided by squiguy this what I did:

```
member_results.map(&:downcase).sort.uniq.take(5)

```

That solves most of my problem. 
But when I am displaying those results I need them back to the original format.

```
For example the result could be grisHam, aNdy etc.

```