Am working on upgradation of Sybase 15.7 from 12.5 where I encountered a peculiar problem.Below query
select rs.EmpId, rs.Date, rs.Currency, rs.Salary,
from #Results rs, #EmpSort es
where rs.EmpId = es.EmpId
order by es.EmpCode, rs.Currency
while executing, result is grouped as currency and sorted in according to salary desc in Sybase 15.7, where as in Sybase 12.5 result is grouped as currency and sorted according to date asc. Am not sure why this happening.