I have a field with names, a string field, and I want to create another one with serial content following the alphabetical order.
I have this:
|Field1|
| B |
| C |
| A |
| D |
And I want to reach this:
|Field1| Field2 |
| A | 1 |
| B | 2 |
| C | 3 |
| D | 4 |
The MMQGIS plugin offers a tool to sort Shapefiles, but is this operation not possible directly in the field calculator? I'm very interested to know how to make this to make a model in the graphical modeller