Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

disable enum sorting #330

Open
kufii opened this issue Feb 11, 2019 · 1 comment
Open

disable enum sorting #330

kufii opened this issue Feb 11, 2019 · 1 comment

Comments

@kufii
Copy link

kufii commented Feb 11, 2019

Version

3.2.29

Expected behaviour

the enum will be in the order of the array i use

Actual behaviour

it re-orders my enum

Steps to reproduce

My code for my enum:

t.enums.of(['0', '1/8', '1/4', '1/2', '1', '2', '3', '4', '5', '6'], 'ChallengeRating')

that's the order I want it to show in but it instead shows in this order

['0', '1', '2', '3', '4', '5', '6', '1/8', '1/4', '1/2',]

@yuraxdrumz
Copy link

Hey,
As stated here. There is no preservation order and each browser deals with it differently.

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

No branches or pull requests

2 participants