order_by function changed
invoke function upgraded & __construct function fixed and some changes