In the directory \"data\" are these files:
command-1.9a-setup command-2.0a-setup command-2.0c-setup command-2.0-setup
If you specify to sort that you only want to consider the second field (-k2) don't complain that it does not consider the third one.
-k2
In your case, run sort --version-sort without any other argument, maybe this will suit better.
sort --version-sort