Sort Unread Message on

Hello All,

I am working on a project in which i am working on I need to perform some task on Unread messages by using FIFO technique(need to start working on bottom Last Unread meesage)
Please suggest how can i get all unread message with FIFO Technique.
Charu Rathi