I'd add a comment pointing out that even though the group id is a string, the format is chosen carefully so that string comparison returns the same result as numeric comparison.  This wouldn't work if the group id had the month first!