Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

order of entries varies #2

Open
jancborchardt opened this issue Nov 28, 2012 · 5 comments
Open

order of entries varies #2

jancborchardt opened this issue Nov 28, 2012 · 5 comments
Assignees

Comments

@jancborchardt
Copy link
Member

I have 3 entries in my drinks: Slyrs, Augustiner and Club Mate, added in that order. When opening the app in other browsers or even when reloading in the same one, the order changes though, seemingly random.

Because I added Club Mate directly after Augustiner, they have the same timestamp. But oftentimes Slyrs is sorted last (or first), or is even the only entry loaded.

Not sure if that just is a problem with myfavoritedrinks or could also be an issue with remotestorage.js – there’s no errors in the log though. cc @nilclass

@ghost ghost assigned xMartin Nov 28, 2012
@nilclass
Copy link
Member

The order of directory entries is meaningless. So if you want to have data in a specific order, the app needs to sort it.

If "Slyrs" is the only entry loaded that is a bug though. Do you have any way of reliably reproducing that?

@xMartin
Copy link
Member

xMartin commented Nov 29, 2012

My Favorite Drinks is still using RC3. Maybe that's the problem. It has bugs unfortunately. We should update to head.

@xMartin
Copy link
Member

xMartin commented Feb 15, 2013

We're running on 0.7.0 now and things seem to be stable.

The missing sorting feels like a bug, yes, but for this small example app I consider it rather a feature request and I'm not sure if I want to add it. I want to keep the code simple.

@jancborchardt
Copy link
Member Author

I don’t want sorting, I just expect the drinks to be in the same order every time (which would likely be the order in which I added them). If they switch around sometimes, I’m confused and also a bit wondering if there was some data loss. It’s damaging the perception of stability if entries jump around seemingly at random.

@xMartin
Copy link
Member

xMartin commented Feb 16, 2013

Yes, it's about keeping the order, not sorting. Wrong term. And you're probably right about a very bad effect for people taking it as a demo app. Keeping the order would mean that we need to add timestamps and sorting to the module code so it wouldn't be so easily readable any more. But probably I should start using the Minimal Example for showing simple code instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants