16bool NumericSort(std::string a, std::string b) {
32 std::cout <<
"Enter number of elements to be sorted Numerically\n";
35 std::vector<std::string> v(n);
36 std::cout <<
"Enter the string of Numbers\n";
37 for (
int i = 0; i < n; i++) {
41 sort(v.begin(), v.end());
42 std::cout <<
"Elements sorted normally \n";
43 for (
int i = 0; i < n; i++) {
44 std::cout << v[i] <<
" ";
48 std::sort(v.begin(), v.end(), NumericSort);
49 std::cout <<
"Elements sorted Numerically \n";
50 for (
int i = 0; i < n; i++) {
51 std::cout << v[i] <<
" ";