changed the order by logic with lastmodified date
Merge pull request #520 from skpcharles/master

changed the order by logic with lastmodified date