Added creating inputs in order ascending or descending or random