added flash notice
fixed sort