Item class: move semver_sort into class