"Conviction" means a judgment of conviction or sentence entered upon a plea of guilty or upon a verdict or finding of guilty of an offense, rendered by a legally constituted jury or by a court of competent jurisdiction authorized to try the case without a jury. (Section 2-5 of the Criminal Code of 1961 [720 ILCS 5/2-5])(R 385)