how to maintain the order of a list in postgres
Closed this issue · 2 comments
Kelbie commented
with the resume builder, I need to select items in a fixed arbitrary order
Kelbie commented
thread on user-defined order in SQL https://news.ycombinator.com/item?id=16635440
approach 3 looks the best but an alternative could be to simply store the order in an array-string
Kelbie commented
closing this for now because I found a solution that involves storing the data as JSON which is not as efficient but works with no underlying complexity and also makes it very flexible.