strongdm / comply

Compliance automation framework, focused on SOC2
https://comply.strongdm.com
Apache License 2.0
1.3k stars 246 forks source link

Sorting standards not working as expected #61

Open samroy92 opened 5 years ago

samroy92 commented 5 years ago

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.

samroy92 commented 5 years ago

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