Added GetSort storedprocedure