Typescript Variable Within Stringstream Cppreference Sort