Foremost, devotees can't be compared, since everyone have their unique way of devotion towards Shiva.
Let's discuss the devotion of all the devotees..
- Ravana :: Ravana was the greatest devotee of Shiva. He pleased Shiva and had Shiva's Darshan by offering his nine heads.
- Shiva gave the Chandrahasa weapon to Ravana. And gave a word to Ravana that , whenever he desires to see Shiva, Shiva would come for him.
- Ravana with his utmost devotion to Shiva , lifted even the Mount Kailash and composes the Shiv Tandava Stothram.

- Ravana had all the nine planets under his control, that means Ravana wrote his own destiny.
- Ravana was well versed with all the 4 Vedas, and was a great musician, architect etc. Ravana was even assigned to build the castle on Mount Kailash, since Shiva was impressed with his amazing architect capabilities.
- Shiva himself dictated the Ravana Samhita, and Ravana penned down the book.
- Shiva loved to hear Ravana playing the Rudra Veena.
- Ravana’s devotion towards Shiva became selfish, because of his arrogance.
The only reason for Ravana’s decline was his own arrogance and lust !
Nandi :: Nandi is not only Vehicle for Shiva , but Shiva's great devotee and best friend.
- Nandi was born to Sage Shilada, after doing rigorous penance for several years. When Nandi learns from his father , that he is short lived, he starts his tapasya for Shiva. Shiva, very happy with Nandi grants boon of Nandi becoming his vehicle and grants him immortality.

- When Devas and Asuras did Samudra Manthan, churning of the ocean for celestial nectar. Foremost, poison oozed out of the Ocean and Shiva drank the poison to save the Universe, and along with Shiva, Nandi too drank the poison but nothing happened to Nandi. Since Nandi surrendered to Shiva completely, Nandi became immortal.
- Shiva pleased with Nandi gave a boon that, whoever visits Shiv temple first have to pray to Nandi, please Him, and see Shivling through Nandi’s horns ( the space between his two horns) and tell the purpose of their visit or wishes in Nandi’s ears, since it will for sure reach Shiva.
- According to few Puranas , Nandi has bull face and a Human body , symbolizing that of Shiva ( as ShanKara and Pashupathi ).
Lord Vishnu :: Lord Vishnu and Shiva are one and the same, so we can't say that Vishnu is a devotee of God Shiva.
- According to Shiva Purana, Lord Vishnu left his abode and went to Kashi to worship Shiva. He pledged to worship Shiva with one thousand lotuses.

- Vishnu found that the last ‘thousandth ‘ lotus missing, so Lord Vishnu whose eyes are often compared to lotuses, plucked one of his eyes and offered it to Shiva.
- Shiva immensely pleased with Vishnu’s devotion, restored his eye and granted him the Sudarshan Chakra.
We may conclude that, Since Nandi’s devotion was selfless compared to King Ravana, so Nandi will be the greatest ever devotee of Shiva.