Actions

Template

Versionsort

From Sega Retro

Converts a version number into something a wiki table can sort. Letters and brackets are stripped/ignored.

Example:

{{versionsort|1.2.3}} returns 000001000002000003000000000000

{{versionsort|2.55.0.1}} returns 000002000055000000000001000000

{{versionsort|99.X.555 (Hello)}} returns 000099000000000555000000000000

{{versionsort|4.5.6 (123)}} returns 000004000005000006000000000000