how to get the most recent date value

I have a set of values like this and sometimes more

source5local_02Dec2008
source5local_01Nov2008
source5local_05Sep2008

I need to retrieve the string with the most recent date
if I cut the date value from each of these strings is there any means to compare them

Grep for Dec?

Do you multiple dates per month?

Say you have:

source5local_02Dec2008

source5local_08Dec2008

This can work

cat file |grep Dec |sort |tail -1

There are MANY treads on here that deal with extracting dates from file names.

The "Search Button" is your friend...

I guess this one should be deleted.