Kelbie/student-log

how to maintain the order of a list in postgres

Closed this issue · 2 comments

with the resume builder, I need to select items in a fixed arbitrary order

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

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.