Ciao, you should create a calculated field based on version. And then group your documents by the new calculated field.
Here the full explanation:
- Create a calculated field based on Version; Formula syntax is like
Excel formula (see link;
https://msdn.microsoft.com/en-us/library/office/bb862071(v=office.14).aspx ) - You should split the version string by the "."(dot) charactedcharacter and then check if major an minor version define a document hasas Draft or Publish (apply your criteria here)
- Draft | Publish, are two of possible values of your calculated field
- Create views that filter or group documents by that value