import Data.List
main = do
    contents <- getContents
    mapM_ putStrLn . map solve $ init $ lines contents
solve :: String -> String
solve = unwords . map show . sort . map (read :: String -> Int) . words