Forum:How to organise dates in infobox

On the Nintendo Wiki I have been working on updating the game infobox template. With the update the release dates will no longer be in chronological order. The new update separates the release dates by game and then by country. I was wondering if there was any code that I could add that would take the date inputted by the user (ex. June 10, 2012) and then organize the release dates. Here is an example of the usage of the template