Sort Unread Message on web.whatsapp.com

Hello All,

I am working on a project in which i am working on web.whatsApp.com. 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.
Thanks
Charu Rathi