add ORDER BY to SELECT function. Fix conditions generating.

Signed-off-by: Aleksey Snisar <osni@isd.dp.ua>
Add trim to path, add path variable to set_log function.
add "°" char to translit function