i have tried 2 methods but didnt work for me. they only work if i have input element before i run the program. for my program it only gets the elements when i run it.
error is no matching function to call to sort(unresolved overloaded function type)
is bool compare function getting anything from myStruct? or i am using the sort wrongly