Html Input Type File Javascript Array Sort By Property