Ordering by meta value not working

EDIT:
Did you try adding 'meta_type' => 'NUMERIC' to your arguments?

You didn’t specify what the current behaviour is. Why is it not ordering correctly? How is it ordering now and how do you want the ordering to be?

By the looks of your code, could you try the following:

Change

'orderby' => 'meta_value',

In to

'orderby' => 'meta_value_num',

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