implement lexicographic sorting algorithm for sorting
Merge branch 'master' of github.com:fhirbase/fhirbase-jsonb
fix tests