# // Write, Edit and Run your Javascript code using JS Online Compiler
# // Write a function that sorts an array card ranks in ascending order based on standard playing card ranks. (from lowest to highest)
cards = ['Jack', 8, 2, 2, 6, 'King', 5, 3, 'Queen', 'King', 'Queen'];