How To Sort An Array Based Implementation Of A Stack