strongdm/comply

Sorting standards not working as expected

samroy92 opened this issue · 1 comments

https://github.com/strongdm/comply/blob/master/internal/render/controller.go#L82

The sort algorithm in Go library sorting for example:

A1
A11
A111
A2

Instead of:
A1
A2
A11
A111

I think a fix might look something like this: https://softwareengineering.stackexchange.com/questions/127639/why-do-some-sorting-methods-sort-by-1-10-2-3

But not sure, this is low priority, visual only. I am using FISMA NIST 800-53 standards that employ this type of formating: AC-1, AC-1(1), AC-1(2), etc.

An option to disable sorting would be nice as well, I am using the docker container so it's hard to rebuild.