The problem with the complex regex is what happens for non english languages? Seems to me (without an awful lot of thought) that using a special operator would be more robust, and also have other applications.
There may actually be no need for database changes. The series_sort can be maintained as a pure in memory cache, populated on demand, and visible *only* in database2.py
|