The Internet Movie Database provides several RSS feeds - one is a daily list of celebrity birthdays. The list items is in no particular order, making it harder to look for a particular name.
We can use the Sort module to alphabetize the list - each item title contains the person's name and their age (if they're still alive). But there's a hitch: the names are formatted like this:
John Smith (27)
If we alphabetize this list, they're all in first name order - not quite what we want! Luckily, we have the Regex module. With a little pattern matching magic, we can rearrange this name to look like this:
Smith, John (27)
Now we just need to pass the data through the Sort module, sort by item.title in ascending order, and we have a list arranged by last name.
If we wanted to retain the original title format, we could have (before running through Regex) used the Rename module to create a copy of the title (perhaps called sorted_title), then used Regex to modify and Sort to sort the new sorted_title element.
Pipe Web Address: http://pipes.yahoo.com/pipes_team/3K17PeFS3BGDzObLGsevXg