You're re-using variable t as an int counter (in your loops) and as a temporary placeholder during your swap (intending it to be a double at that point). It may not affect your answers, but try using variables longer than one-letter, and making sure that each only has one purpose and one type per function.
Other than that, tell us what decimal numbers you're entering (and in what order), and what gets printed out as the sorted array. That might make it more obvious what's going wrong.