문제

If I create an atom increment to use as an index, eg "post::1", "post::2" etc, it will sort fine up until it reaches the next key length because of the unicode collation.

Is there a better practice for indexing for later searching with views?

도움이 되었습니까?

해결책

Use padding?

key = sprintf("post::%08d", counter)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top