Update lib/Grid/Advanced.php

call model->setOrder if such method for Model (not only DSQL and Model_Table) is defined.
Update lib/Model.php

Enable setLimit and setOrder support in Model if it have associated controller and controller has such method
typo
Update lib/Controller/Data/Array.php

Remove useless rows of code
Update lib/Controller/Data/Array.php

I believe this is more correct, but Romans, please take a look.
Update lib/Model.php

should be strong comparision
Update lib/Controller/Data/Array.php

1. Implementation of Array sorting - setOrder()
2. Fix for sequential ID generation in save()
Update lib/Grid/Advanced.php

no more needed check for method existence in Model
Update lib/Controller/Data/Array.php

Remove old code. That was wrong anyway.
Update lib/Controller/Data/Array.php

fix for sequential ID when session array is empty otherwise max() throw error
Merge pull request #217 from DarkSide666/patch-16

Fixes and features related with Model and Data_Array controller