I made a list in vue.js where the order is not how I expect. A code pen is available here
EDIT: Ahhhh, it looks like the problem is only in Chrome, I can not reproduce it in Firefox and Edge
All item get sorted correct (green) expect the first one (red):
The list in the markup is defined like so:
<li v-for="image in orderedPhotos" v-bind:key="image.imageKey" style="border: solid 1px black;margin: 5px">
;
and the orderedPhotos variable is a computed vue.js variable:
computed: {
orderedPhotos() {
return this.photos.slice(0).sort((x, y) => x.uploadDate < y.uploadDate);
},
}