Any way for get_next_post() to use the actual post order instead of publish order?

Any way for get_next_post() to use the actual post order instead of publish order?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)