0

This function takes,
{"foo", "#123", "#124", "bar", "#125", "#126"}
converts the numbers to a range:
{"foo", "#123:126", "bar"}
and returns:
"foo,#123:126,bar"
static void Main(string[] args)
{
var ids = new string[] { "foo", "#12", "#14", "#17", "#13", "#18", "#bar", "#19", "#20",...